/*---------------------------------------------------------------------------*/
#include <QtGui>
#include "Threads.h"
#include <iostream>
#include "Utils.h"
#include "MenuAction.h"
#include "BrowserBox.h"
#include "FileNode.h"
/*---------------------------------------------------------------------------*/
using namespace std;
/*---------------------------------------------------------------------------*/
ActionThread::ActionThread(MenuAction *act) : QThread(NULL)
{
	action = act;
}	
/*---------------------------------------------------------------------------*/
void ActionThread::run()
{
	DEBUGMSG("ActionThread::run()");
	action->process();

	delete action;
	emit threadEnded();
}
/*---------------------------------------------------------------------------*/
BrowseThread::BrowseThread(BrowserBox *f, FileNode *fn) : QThread(NULL)
{
	flw = f;
	filenode = fn;
}	
/*---------------------------------------------------------------------------*/
void BrowseThread::run()
{
	DEBUGMSG("BrowseThread::run()");

	flw->fillList(filenode);


	emit threadEnded();
}
/*---------------------------------------------------------------------------*/
